import { createActions, handleActions } from 'redux-actions'

export const { increase, decrease, asyncIncrease, asyncDecrease } = createActions({
    INCREASE: null,
    DECREASE: null,
    ASYNC_INCREASE: null,
    ASYNC_DECREASE: null
})

export const reducer = handleActions({
    [increase.toString()]: (state) => state + 1,
    [decrease.toString()]: (state) => state - 1,
}, 10)
